package com.ctbri.io;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Ex10 {

	public static void main(String[] args) throws IOException {
		if(args.length < 2)
			return;
		BufferedReader in = new BufferedReader(new FileReader(args[0]));
		String str;
		while((str = in.readLine()) != null) {
			if(str.contains(args[1]))
				System.out.println(str);
		}
		in.close();
	}
}
